package com.lanchetech.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.lanchetech.entity.Privilege;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface PrivilegeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Privilege record);

    int insertSelective(Privilege record);

    Privilege selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Privilege record);

    int updateByPrimaryKey(Privilege record);

    Privilege findOneByUserIdAndName(@Param("userId")Long userId,@Param("name")String name);

    List<Privilege> findAllByUserId(@Param("userId")Long userId);

}